小红薯关键词搜索笔记 正常
更多API推荐>>
小红薯关键词搜索笔记,必须要使用登录COOKIE,测试中。

接口地址: https://api.itfaba.com/xhs/searchnotes

返回格式: JSON

请求方式: POST

请求示例: https://api.itfaba.com/xhs/searchnotes?apiKey=testkey

直连路由服务地址1: https://api-1.itfaba.com/xhs/searchnotes ?apiKey=xxx

直连路由服务地址2: https://api-2.itfaba.com/xhs/searchnotes ?apiKey=xxx

注意:{apiKey}参数接口密钥登陆用户平台获取

请求参数说明:

名称 必填 类型 说明
keyword string 搜索关键词
cookie string 小红薯登录COOKIE
page int 默认:1,当前页数
page_size int 默认:20,每页显示数
note_type int 默认:0 ,0:综合,1:视频,2:图文

返回参数说明:

名称 类型 说明

返回示例:

{
	"result": 1,
	"info": "成功",
	"data": {
		"has_more": true,
		"items": [
			{
				"note_card": {
					"cover": {
						"url_pre": "http://sns-webpic-qc.xhscdn.com/202404131558/677c373f3f50aec35bcec85f678e33f2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_prv_1",
						"width": 1080,
						"url_default": "http://sns-webpic-qc.xhscdn.com/202404131558/da90af6297c7119476e3425eee3862b2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_mw_1",
						"height": 1440
					},
					"display_title": "《如此神秘的他》98集",
					"interact_info": {
						"liked_count": "10",
						"liked": false
					},
					"type": "video",
					"user": {
						"user_id": "5fcbad84000000000100168b",
						"nick_name": "满满短剧",
						"nickname": "满满短剧",
						"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo30ts1hdd2ku005nublm2085kbvri0rl0?imageView2/2/w/80/format/jpg"
					},
					"image_list": [
						{
							"width": 1080,
							"info_list": [
								{
									"image_scene": "WB_DFT",
									"url": "http://sns-webpic-qc.xhscdn.com/202404131558/da90af6297c7119476e3425eee3862b2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_mw_1"
								},
								{
									"image_scene": "WB_PRV",
									"url": "http://sns-webpic-qc.xhscdn.com/202404131558/677c373f3f50aec35bcec85f678e33f2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_prv_1"
								}
							],
							"height": 1440
						}
					]
				},
				"model_type": "note",
				"id": "65b1efe2000000002c02a833"
			}
		]
	}
}

请求参数设置:

参数名称 参数值


{
	"result": 1,
	"info": "成功",
	"data": {
		"has_more": true,
		"items": [
			{
				"note_card": {
					"cover": {
						"url_pre": "http://sns-webpic-qc.xhscdn.com/202404131558/677c373f3f50aec35bcec85f678e33f2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_prv_1",
						"width": 1080,
						"url_default": "http://sns-webpic-qc.xhscdn.com/202404131558/da90af6297c7119476e3425eee3862b2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_mw_1",
						"height": 1440
					},
					"display_title": "《如此神秘的他》98集",
					"interact_info": {
						"liked_count": "10",
						"liked": false
					},
					"type": "video",
					"user": {
						"user_id": "5fcbad84000000000100168b",
						"nick_name": "满满短剧",
						"nickname": "满满短剧",
						"avatar": "https://sns-avatar-qc.xhscdn.com/avatar/1040g2jo30ts1hdd2ku005nublm2085kbvri0rl0?imageView2/2/w/80/format/jpg"
					},
					"image_list": [
						{
							"width": 1080,
							"info_list": [
								{
									"image_scene": "WB_DFT",
									"url": "http://sns-webpic-qc.xhscdn.com/202404131558/da90af6297c7119476e3425eee3862b2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_mw_1"
								},
								{
									"image_scene": "WB_PRV",
									"url": "http://sns-webpic-qc.xhscdn.com/202404131558/677c373f3f50aec35bcec85f678e33f2/1040g2sg30ubeorod5a105nublm2085kbudo1ljg!nc_n_webp_prv_1"
								}
							],
							"height": 1440
						}
					]
				},
				"model_type": "note",
				"id": "65b1efe2000000002c02a833"
			}
		]
	}
}

错误码格式说明:

名称 类型 说明
code int 0:异常消息,1:正常,2:警告
result int 0:异常消息,1:正常

代码示例:

apiKey登录用户平台获取